
import { Button } from 'antd';
import { useNavigate } from 'react-router';

const Login = () => {

    const navigate = useNavigate()

    const login = () => {
        navigate('/');
    };

    return (
        <Button onClick={login} type="primary">Login</Button>
    )
}

export default Login